all:test1 test2 pdfview


msfonts_down:
	-sudo mkdir /usr/share/fonts/msfonts
	wget http://bilingthesis.googlecode.com/files/simsun.tar.lzma
	wget http://bilingthesis.googlecode.com/files/simhei.tar.lzma
	wget http://bilingthesis.googlecode.com/files/simkai.tar.lzma
	wget http://bilingthesis.googlecode.com/files/simfang.tar.lzma
	wget http://bilingthesis.googlecode.com/files/times.tar.lzma

msfonts_install:msfonts_down
	sudo tar --lzma -xvf ./simsun.tar.lzma -C /usr/share/fonts/msfonts
	sudo chmod 754 /usr/share/fonts/msfonts/*
	sudo mkfontdir
	sudo mkfontscale
	sudo fc-cache -fv

pkginstall:
	
test1:
	xelatex helloworld.tex
	xelatex helloworld_cn.tex
	xelatex helloworld_cjk.tex
	xelatex helloworld_ms.tex

test2:
	xelatex figuretest.tex

test3:


test4:

pdfview:
	evince *.pdf 

clean:
	-rm -f *.pdf *.aux *.log core *.tex~ *.dir *.scale *.tar.lzma.* *.tar.lzma *~
 

